using System;
using System.Windows.Forms;
using GitProjectManager.Models;
using GitProjectManager.Services;

namespace GitProjectManager
{
    internal static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            
            // 初始化服务
            var configService = new ConfigService();
            var projectService = new ProjectService(configService);
            
            // 创建并运行主窗体
            var mainForm = new MainForm(projectService);
            Application.Run(mainForm);
        }
    }
}